//
//  HXLDomCollectionViewCell.m
//  On The Load
//
//  Created by 晓琳 on 15/11/9.
//  Copyright © 2015年 @@叶一闽. All rights reserved.
//

#import "HXLDomCollectionViewCell.h"
#import "HXLLeavesModel.h"


@implementation HXLDomCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubviews];
    }
    return self;
}

- (void) createSubviews {
    self.contentLabel = [[BaseLabel alloc] initWithFrame:CGRectMake(0, 0, 60*SCALEW, 30*SCALEH)];
    self.contentLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.contentLabel];
}

- (void) setCityModel:(HXLLeavesModel *)cityModel {
    _cityModel = cityModel;
    self.contentLabel.text = cityModel.cityName;
}



@end
